package com.jason.system.config;

import com.github.jasonj1102.aesspringbootstarter.utils.AesUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author jie
 * @version 1.0
 * success come from self-discipline
 * @date 2021/4/17 13:59
 */
@Configuration
public class AesConfig {

  @Value(value = "${myProperties.key}")
  private String key;

  @Bean
  public AesUtils aesUtils(){
    return new AesUtils(key);
  }

}
